package com.hbnu.test.www.net;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class TCP_server06 {
    public static void main(String[] args) {
        try(ServerSocket serverSocket = new ServerSocket(8888);) {

            System.out.println("图片服务器已开启，请上传图片");
            while(true){
                Socket socket = serverSocket.accept();
                new Thread(new TCP_server_thread06(socket)).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
